package my.utils;

import java.util.Comparator;

import com.deve.pig.model.Customer;
import com.deve.pig.model.Merchant;

/** 
 * @organization: Microsoft
 * @author: tanyouzhong
 * @fileName: CustomerDistanceComparator.java
 * @package: com.deve.pig.comparator
 * @description: 用户间距离比较器 (升序)
 * @date: 2014年7月17日下午1:09:21
 * @modifyauthor: TODO
 * @modifydate: TODO
 * @modifycontent: TODO
 * @version: 1.0
 */
public class MerchantDistanceComparator implements Comparator<Merchant>
{
	@Override
	public int compare(Merchant c1, Merchant c2)
	{
		return c1.getWithUserDistance() > c2.getWithUserDistance() ? 0 : -1;
	}
}